package com.itheima;

import com.itheima.config.MyConfig;
import com.itheima.controller.AccountController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);


        AccountController accountController = context.getBean(AccountController.class);

        //访问controller
        accountController.transfer(1,2,500);







    }

}
